package io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * @author liyang
 * @version 1.0
 * @package io
 * @file FOSDemo.java
 * @description
 * @time 2024-03-18 18:17
 */
public class FOSDemo {
    public static void main(String[] args) throws IOException {

        FileOutputStream fos = new FileOutputStream("code.txt");//与上面一句位置相同

        fos.write(97);


        System.out.println("写出完毕!");
        //注意！流使用完毕后要关闭，来释放底层资源
        fos.close();


    }
}
